﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphicsFramework.Property
{
    public class ColorProperty
    {
        private byte alpha;
        private byte red;
        private byte green;
        private byte blue;

        #region "Constructors"

            public ColorProperty()
            {
                this.alpha = 255;
                this.red = 0;
                this.green = 0;
                this.blue = 0;
            }

            public ColorProperty(byte red, byte green, byte blue)
            {
                this.alpha = 255;
                this.red = red;
                this.green = green;
                this.blue = blue;
            }

            public ColorProperty(byte alpha, byte red, byte green, byte blue)
            {
                this.alpha = alpha;
                this.red = red;
                this.green = green;
                this.blue = blue;
            }

            public ColorProperty Clone()
            {
                return new ColorProperty(this.alpha, this.red, this.green, this.blue);
            }

        #endregion

        #region "Properties"

            public byte Alpha
            {
                get { return alpha; }
                set { alpha = value; }
            }

            public byte Red
            {
                get { return red; }
                set { red = value; }
            }

            public byte Green
            {
                get { return green; }
                set { green = value; }
            }

            public byte Blue
            {
                get { return blue; }
                set { blue = value; }
            }        
        
        #endregion

    }
}
